<?php
/**
 * @class pages Images module
 * @author Bethrezen <admin@devgroup.ru>
 * @desc Upload and manage images.
 */
class images
{
	var $core;
	
	var $uploadFolder = './';
	
	var $action='';
	
	var $cur_page = 1;
	var $total_pages = 1;
	var $limit = 10;
	
	function images(&$_core)
	{
		
		
		$this->core = $_core;
		
		$this->core->adminLinks['images'] = 'Картинки';
		
		$action = 'main';
		if (isset($_GET['actionImages']))
			$action = $_GET['actionImages'];
		if (isset($_POST['actionImages']))
			$action = $_POST['actionImages'];
				
		$this->action = $action;
		
	}
	
	
	/**
	 * Main admin action
	 *
	 */
	function admin()
	{
		
		$actFunc = "admin" . $this->action;
		$this->$actFunc();
	}
	
	function adminMain()
	{	
		
		
	}
	
}
